package com.stylefeng.guns.common.persistence.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author xiejie123
 * @since 2018-01-20
 */
@TableName("t_order")
public class TOrder extends Model<TOrder> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 上游发货方
     */
    @TableField("send_dept_name")
    private String sendDeptName;
    /**
     * 物品名称
     */
    @TableField("goods_name")
    private String goodsName;
    /**
     * 件数
     */
    @TableField("goods_piece")
    private Integer goodsPiece;
    /**
     * 重量
     */
    @TableField("goods_weight")
    private Double goodsWeight;
    /**
     * 体积
     */
    @TableField("goods_volume")
    private Double goodsVolume;
    /**
     * 提付款
     */
    private Double payment;
    /**
     * 代收货款 -如果这个有值 就有代还货款
     */
    private Double collection;
    /**
     * 待还货款
     */
    private Double still;
    /**
     * 返款
     */
    @TableField("back_amount")
    private Double backAmount;
    /**
     * 需要转换成数字 已清账/待结算 0/1，有返款则必填 返款结算
     */
    private Integer settlement;
    /**
     * 收货人
     */
    private String consignee;
    /**
     * 收货电话
     */
    @TableField("receiving_phone")
    private String receivingPhone;
    /**
     * 收货地址
     */
    @TableField("receiving_address")
    private String receivingAddress;
    /**
     * 自提/配送 0/1
     */
    private Integer mode;
    /**
     * 是，空，否
     */
    private String notice;
    /**
     * 回单要求
     */
    private String receipt;
    private Date createtime;
    /**
     * 创建人
     */
    @TableField("user_id")
    private Integer userId;
    /**
     * 编号
     */
    @TableField("order_num")
    private String orderNum;
    /**
     * 是否中转 0 否 1 是
     */
    @TableField("is_transfer")
    private String isTransfer;
    /**
     * 批次
     */
    @TableField("batch_no")
    private String batchNo;
    /**
     * 网点ID
     */
    @TableField("dot_id")
    private Integer dotId;
    /**
     * 回单状态 0 待回单 1 待回寄 2.已回寄
     */
    @TableField("receipt_status")
    private Integer receiptStatus;
    /**
     * 备注
     */
    private String mark;
    /**
     * 订单状态 0-审核中 1-待出库 2-已出库 3-完成
     */
    private Integer status;
    /**
     * 司机ID
     */
    @TableField("driver_id")
    private Integer driverId;
    /**
     * 中转商户ID
     */
    @TableField("mid_dept_id")
    private Integer midDeptId;
    /**
     * 实际提货人
     */
    @TableField("really_user")
    private String reallyUser;
    /**
     * 实际联系人
     */
    @TableField("really_phone")
    private String reallyPhone;
    /**
     * 身份证
     */
    @TableField("really_card")
    private String reallyCard;

    @TableField("check_user_id")
    private String checkUserId;

    @TableField("is_out")
    private String isOut;

    private String original_num;

    private String scene_money;

    private String order_date;

    private String call_str;
    private Integer bacth_id;

    private Integer really_goodsPiece;
    private String really_mark;
    private String transfer_name;

    private Integer province_code;
    private Integer city_code;
    private Integer area_code;

    private String push_str;

    private String vehicle_no;

    private String driver_name;

    private Date arrive_date;
    private Date out_time;
    private Date check_time;
    private Date notification_time;

    private String transport_money;
    private String bill_num;

    private Integer bill_id;

    private String carry_money;
    private Integer train_id;
    private Integer flow_status; //0 开单 1 车次核销 2 出库 3 收银 4 核销
    private String train_no;
    private String fee_remark;
    private Date edit_time;
    private Integer edit_user;

    private Integer order_back_receive_id;

    private Integer order_back_send_id;

    private Double extra_money;

    public Double getExtra_money() {
        return extra_money;
    }

    public void setExtra_money(Double extra_money) {
        this.extra_money = extra_money;
    }

    public Integer getOrder_back_receive_id() {
        return order_back_receive_id;
    }

    public void setOrder_back_receive_id(Integer order_back_receive_id) {
        this.order_back_receive_id = order_back_receive_id;
    }

    public Integer getOrder_back_send_id() {
        return order_back_send_id;
    }

    public void setOrder_back_send_id(Integer order_back_send_id) {
        this.order_back_send_id = order_back_send_id;
    }

    public String getVehicle_no() {
        return vehicle_no;
    }

    public void setVehicle_no(String vehicle_no) {
        this.vehicle_no = vehicle_no;
    }

    public String getDriver_name() {
        return driver_name;
    }

    public void setDriver_name(String driver_name) {
        this.driver_name = driver_name;
    }

    public Date getArrive_date() {
        return arrive_date;
    }

    public void setArrive_date(Date arrive_date) {
        this.arrive_date = arrive_date;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getSendDeptName() {
        return sendDeptName;
    }

    public void setSendDeptName(String sendDeptName) {
        this.sendDeptName = sendDeptName;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public Integer getGoodsPiece() {
        return goodsPiece;
    }

    public void setGoodsPiece(Integer goodsPiece) {
        this.goodsPiece = goodsPiece;
    }

    public Double getGoodsWeight() {
        return goodsWeight;
    }

    public void setGoodsWeight(Double goodsWeight) {
        this.goodsWeight = goodsWeight;
    }

    public Double getGoodsVolume() {
        return goodsVolume;
    }

    public void setGoodsVolume(Double goodsVolume) {
        this.goodsVolume = goodsVolume;
    }

    public Double getPayment() {
        return payment;
    }

    public void setPayment(Double payment) {
        this.payment = payment;
    }

    public Double getCollection() {
        return collection;
    }

    public void setCollection(Double collection) {
        this.collection = collection;
    }

    public Double getStill() {
        return still;
    }

    public void setStill(Double still) {
        this.still = still;
    }

    public Double getBackAmount() {
        return backAmount;
    }

    public void setBackAmount(Double backAmount) {
        this.backAmount = backAmount;
    }

    public Integer getSettlement() {
        return settlement;
    }

    public void setSettlement(Integer settlement) {
        this.settlement = settlement;
    }

    public String getConsignee() {
        return consignee;
    }

    public void setConsignee(String consignee) {
        this.consignee = consignee;
    }

    public String getReceivingPhone() {
        return receivingPhone;
    }

    public void setReceivingPhone(String receivingPhone) {
        this.receivingPhone = receivingPhone;
    }

    public String getReceivingAddress() {
        return receivingAddress;
    }

    public void setReceivingAddress(String receivingAddress) {
        this.receivingAddress = receivingAddress;
    }

    public Integer getMode() {
        return mode;
    }

    public void setMode(Integer mode) {
        this.mode = mode;
    }

    public String getNotice() {
        return notice;
    }

    public void setNotice(String notice) {
        this.notice = notice;
    }

    public String getReceipt() {
        return receipt;
    }

    public void setReceipt(String receipt) {
        this.receipt = receipt;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(String orderNum) {
        this.orderNum = orderNum;
    }

    public String getIsTransfer() {
        return isTransfer;
    }

    public void setIsTransfer(String isTransfer) {
        this.isTransfer = isTransfer;
    }

    public String getBatchNo() {
        return batchNo;
    }

    public void setBatchNo(String batchNo) {
        this.batchNo = batchNo;
    }

    public Integer getDotId() {
        return dotId;
    }

    public void setDotId(Integer dotId) {
        this.dotId = dotId;
    }

    public Integer getReceiptStatus() {
        return receiptStatus;
    }

    public void setReceiptStatus(Integer receiptStatus) {
        this.receiptStatus = receiptStatus;
    }

    public String getMark() {
        return mark;
    }

    public void setMark(String mark) {
        this.mark = mark;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getDriverId() {
        return driverId;
    }

    public void setDriverId(Integer driverId) {
        this.driverId = driverId;
    }

    public Integer getMidDeptId() {
        return midDeptId;
    }

    public void setMidDeptId(Integer midDeptId) {
        this.midDeptId = midDeptId;
    }

    public String getReallyUser() {
        return reallyUser;
    }

    public void setReallyUser(String reallyUser) {
        this.reallyUser = reallyUser;
    }

    public String getReallyPhone() {
        return reallyPhone;
    }

    public void setReallyPhone(String reallyPhone) {
        this.reallyPhone = reallyPhone;
    }

    public String getReallyCard() {
        return reallyCard;
    }

    public void setReallyCard(String reallyCard) {
        this.reallyCard = reallyCard;
    }

    public String getCheckUserId() {
        return checkUserId;
    }

    public void setCheckUserId(String checkUserId) {
        this.checkUserId = checkUserId;
    }

    public String getIsOut() {
        return isOut;
    }

    public void setIsOut(String isOut) {
        this.isOut = isOut;
    }

    public Integer getReally_goodsPiece() {
        return really_goodsPiece;
    }

    public void setReally_goodsPiece(Integer really_goodsPiece) {
        this.really_goodsPiece = really_goodsPiece;
    }

    public String getReally_mark() {
        return really_mark;
    }

    public void setReally_mark(String really_mark) {
        this.really_mark = really_mark;
    }

    public Integer getProvince_code() {
        return province_code;
    }

    public void setProvince_code(Integer province_code) {
        this.province_code = province_code;
    }

    public Integer getCity_code() {
        return city_code;
    }

    public void setCity_code(Integer city_code) {
        this.city_code = city_code;
    }

    public Integer getArea_code() {
        return area_code;
    }

    public void setArea_code(Integer area_code) {
        this.area_code = area_code;
    }

    public Integer getBacth_id() {
        return bacth_id;
    }

    public void setBacth_id(Integer bacth_id) {
        this.bacth_id = bacth_id;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    public String getTransfer_name() {
        return transfer_name;
    }

    public void setTransfer_name(String transfer_name) {
        this.transfer_name = transfer_name;
    }

    public String getPush_str() {
        return push_str;
    }

    public void setPush_str(String push_str) {
        this.push_str = push_str;
    }

    public String getOriginal_num() {
        return original_num;
    }

    public void setOriginal_num(String original_num) {
        this.original_num = original_num;
    }

    public String getScene_money() {
        return scene_money;
    }

    public void setScene_money(String scene_money) {
        this.scene_money = scene_money;
    }

    public String getOrder_date() {
        return order_date;
    }

    public void setOrder_date(String order_date) {
        this.order_date = order_date;
    }

    public String getCall_str() {
        return call_str;
    }

    public void setCall_str(String call_str) {
        this.call_str = call_str;
    }

    public String getTransport_money() {
        return transport_money;
    }

    public void setTransport_money(String transport_money) {
        this.transport_money = transport_money;
    }

    public String getCarry_money() {
        return carry_money;
    }

    public void setCarry_money(String carry_money) {
        this.carry_money = carry_money;
    }

    public String getBill_num() {
        return bill_num;
    }

    public void setBill_num(String bill_num) {
        this.bill_num = bill_num;
    }

    public Integer getBill_id() {
        return bill_id;
    }

    public void setBill_id(Integer bill_id) {
        this.bill_id = bill_id;
    }

    public Integer getTrain_id() {
        return train_id;
    }

    public void setTrain_id(Integer train_id) {
        this.train_id = train_id;
    }

    public String getTrain_no() {
        return train_no;
    }

    public void setTrain_no(String train_no) {
        this.train_no = train_no;
    }

    public String getFee_remark() {
        return fee_remark;
    }

    public void setFee_remark(String fee_remark) {
        this.fee_remark = fee_remark;
    }

    public Integer getEdit_user() {
        return edit_user;
    }

    public void setEdit_user(Integer edit_user) {
        this.edit_user = edit_user;
    }

    public Date getEdit_time() {
        return edit_time;
    }

    public void setEdit_time(Date edit_time) {
        this.edit_time = edit_time;
    }

    public Integer getFlow_status() {
        return flow_status;
    }

    public void setFlow_status(Integer flow_status) {
        this.flow_status = flow_status;
    }

    public Date getNotification_time() {
        return notification_time;
    }

    public void setNotification_time(Date notification_time) {
        this.notification_time = notification_time;
    }

    public Date getCheck_time() {
        return check_time;
    }

    public void setCheck_time(Date check_time) {
        this.check_time = check_time;
    }

    public Date getOut_time() {
        return out_time;
    }

    public void setOut_time(Date out_time) {
        this.out_time = out_time;
    }

    @Override
    public String toString() {
        return "TOrder{" +
        "id=" + id +
        ", sendDeptName=" + sendDeptName +
        ", goodsName=" + goodsName +
        ", goodsPiece=" + goodsPiece +
        ", goodsWeight=" + goodsWeight +
        ", goodsVolume=" + goodsVolume +
        ", payment=" + payment +
        ", collection=" + collection +
        ", still=" + still +
        ", backAmount=" + backAmount +
        ", settlement=" + settlement +
        ", consignee=" + consignee +
        ", receivingPhone=" + receivingPhone +
        ", receivingAddress=" + receivingAddress +
        ", mode=" + mode +
        ", notice=" + notice +
        ", receipt=" + receipt +
        ", createtime=" + createtime +
        ", userId=" + userId +
        ", orderNum=" + orderNum +
        ", isTransfer=" + isTransfer +
        ", batchNo=" + batchNo +
        ", dotId=" + dotId +
        ", receiptStatus=" + receiptStatus +
        ", mark=" + mark +
        ", status=" + status +
        ", driverId=" + driverId +
        ", midDeptId=" + midDeptId +
        ", reallyUser=" + reallyUser +
        ", reallyPhone=" + reallyPhone +
        ", reallyCard=" + reallyCard +
        "}";
    }
}
